package jt.android.platformania.world;

import android.graphics.Point;

//Wall represents an impassable rectangle bounded by platforms
public class Wall extends Object {
	
	//change this whole class?
	
	private Object	tPlatform,
					bPlatform,
					lPlatform,
					rPlatform;
	
	public Wall(Point p, int w, int h)
	{
		setLocation(p);
		setSize(w, h);
		
		Point l = getLocation();
		int w2 	= w/2;
		int h2	= h/2;
		
		tPlatform = new Platform(new Point(l.x - w2, l.y - h2), new Point(l.x + w2, l.y - h2));
		bPlatform = new Platform(new Point(l.x - w2, l.y + h2), new Point(l.x + w2, l.y + h2));
		lPlatform = new Platform(new Point(l.x - w2, l.y - h2), new Point(l.x + w2, l.y - h2));
		rPlatform = new Platform(new Point(l.x - w2, l.y - h2), new Point(l.x + w2, l.y - h2));
		
		//send these platforms to the level platform index
	}

	@Override
	public void update() {
		// TODO Auto-generated method stub
		
	}
}
